package com.practice.practice;

import java.util.HashSet;
import java.util.Iterator;

public class Demo02 {
    public static void main(String[] args) {
        HashSet<String> strings = new HashSet< String>();
        strings.add("sas");
        strings.add("sss");
        strings.add("ccc");
        Iterator<String> iterator = strings.iterator();

        while (iterator.hasNext()){
            String next = iterator.next();
            System.out.println(next);
        }

    }
}
